package com.interview.ujiuye1;

import java.util.HashSet;
import java.util.Set;

/**
 * Copyright (C), 2018-2020
 * FileName: Demo9
 * Author:   kongfanyu
 * Date:     2020/10/19 13:23
 */
public class Demo9 {
    public static void main(String[] args) {
        Set<Short> s = new HashSet<>();
        for (Short i=0; i<100; i++){
            s.add(i);
            s.remove(i-1);
        }
        System.out.println(s.size());
    }
}
